//
//  NSDate+Ex.m
//  CalCounter
//
//  Created by Toanpro on 9/7/13.
//  Copyright (c) 2013 Le thanh Lam. All rights reserved.
//

#import "NSDate+Ex.h"

@implementation NSDate (Ex)
- (NSString *)timeString{
    NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
    [formatter setDateFormat:@"HH:mm"];
    return [formatter stringFromDate:self];
}

- (NSString *)dateString{
    NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
    [formatter setDateFormat:@"yyyy-MM-dd"];
    return [formatter stringFromDate:self];
}
@end
